package com.hgyc.mom.system.entity;

import java.time.LocalDateTime;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;

import com.hgyc.mom.common.annotation.Excel;
import com.hgyc.mom.core.mybatis.EQ;
import com.hgyc.mom.core.mybatis.Like;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * <p>
 * Web令牌
 * </p>
 *
 * @author fwj
 * @since 2025-08-08
 */
@Data
@TableName("sys_web_token")
@Schema(name="Web令牌 对象", description="Web令牌 对象")
public class SysWebToken implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "逻辑ID")
    private Long id;

    @Excel(name = "令牌名称")
    @Like
    @Schema(description = "令牌名称")
    private String tokenName;

    @Excel(name = "应用编码")
    @Like
    @Schema(description = "应用编码")
    private String appCode;

    @Excel(name = "状态")
    @Schema(description = "状态")
    private Long status;

    @Schema(description = "用户ID")
    private Long userId;

    @Excel(name = "密钥")
    @Schema(description = "密钥")
    private String secret;

    @Excel(name = "备注")
    @Schema(description = "备注")
    private String remark;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建者")
    private Long createBy;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新者")
    private Long updateBy;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

}
